package 
{
	import com.aka.tools.Store;
	import edu.szu.huhanpeng.doodlingFight.AppFacade;
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Huhanpeng
	 */
	//[SWF(width = "1024",height = "768",frameRate = "30",backgroundColor = "#CCCCCC")]
	[SWF(width = "800",height = "600",frameRate = "30",backgroundColor = "#CCCCCC")]
	public class DoodlingFight extends Sprite 
	{
		
		public function DoodlingFight():void 
		{
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			// entry point
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			
			Store.stage = stage;
			AppFacade.getInstance().start( this.stage );
			
		}
		
	}
	
}